package cn.zbmao.web.bean;

import cn.zbmao.web.util.dao.DaoFactory;
import com.jfinal.plugin.activerecord.Record;

import java.util.List;

public class Territory {
	private static List<Record> territorys;
	static {
		territorys= DaoFactory.getUserDao().getUser_district_def();
	}

    /**
     * 地域缺省列表
     * @return
     */
	public static List<Record> getTerritorys(){
		if (territorys==null||territorys.size()==0) {
			territorys= DaoFactory.getUserDao().getUser_district_def();
		}
		return territorys;
	}
}
